package cn.quan.evernote;

//import cn.quan.evernote.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * Main activity
 * @author yunfeng.quan@gmail.com
 *
 */
final public class MainActivity extends Activity implements Runnable{

	//view
	private Button cameraAutoFocus;

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
		Log.d(TAG, "onCreate");

		cameraAutoFocus = (Button)findViewById(R.id.btnAutoFocus);
		cameraAutoFocus.setOnClickListener(new OnClickListener(){
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MainActivity.this, Picmo.class);
				startActivity(intent);//show camera
			}
		});
    }
	@Override
	public void run() {
		Log.d(TAG, "run");
		
	}
	@Override
	public void onDestroy() {
		super.onDestroy();
		Log.d(TAG, "onDestroy");
	}
	
	private final String TAG = "**picmo**";

}